package com.aaa.service.impl;

import com.aaa.dao.UserInfoDao;
import com.aaa.entity.Userinfo;
import com.aaa.service.UserInfoService;

import java.util.List;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/6/20 9:24
 * @description：
 * @modified By：
 * @version:
 */
public class UserInfoServiceImpl implements UserInfoService {
    private UserInfoDao userInfoDao;

    public UserInfoDao getUserInfoDao() {
        return userInfoDao;
    }

    public void setUserInfoDao(UserInfoDao userInfoDao) {
        this.userInfoDao = userInfoDao;
    }

    @Override
    public List<Userinfo> findAllUser() {
        return userInfoDao.findAllUser();
    }

    @Override
    public void deleteUserInfoById(Integer userid) {
        userInfoDao.deleteUserInfoById(userid);
    }
}
